import { request } from "@/utils/request";

export const MarketApi = {
    getKline: (params: { symbol:string;period:string; size: string,index:any }) =>
    request.get<any>("/api/users/market/history/kline", params),
    sureOrder: (data: { symbol:string;direction:number;price:number;amount:number;profitRatio:number;countdown:number;paymentPassword:string;}) =>
    request.post<any>("/api/users/trade/order", data),
};
